//
//  DebarkViewController.m
//  ieGou
//
//  Created by Mario on 15/1/29.
//  Copyright (c) 2015年 chaox. All rights reserved.
//  登陆成功页面

#import "DebarkViewController.h"

@interface DebarkViewController () 

@property (nonatomic, retain)NSMutableArray *array01;
@property (nonatomic, retain)NSMutableArray *array02;
@property (nonatomic, retain)NSMutableArray *array03;

@property (nonatomic, retain)UITableView *tableView;

@end

@implementation DebarkViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"我的";
    
    self.array01 = [NSMutableArray arrayWithObjects:@"我的订单", @"团购订单", @"预订订单", @"等待点评", nil];
    
    self.array02 = [NSMutableArray arrayWithObjects:@"每日推荐", @"点赞过的店铺", nil];
    
    self.array03 = [NSMutableArray arrayWithObjects:@"我的优惠券", @"服务中心", nil];
    
    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
    
//    self.tableView.dataSource = self;
//    self.tableView.delegate = self;
    
    //添加一个HeaderView
    UIView *view01 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 375, 120)];
    UIImageView *imageView01 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"10001.jpg"]];
    imageView01.frame = CGRectMake(0, 0, 375, 120);
    self.tableView.tableHeaderView = view01;
    [view01 addSubview:imageView01];
    imageView01.userInteractionEnabled = YES;
    [self.view addSubview:_tableView];
    [imageView01 release];
    
    
    UIButton *button01 = [UIButton buttonWithType:UIButtonTypeCustom];
    [button01 setImage:[UIImage imageNamed:@"10003.jpg"] forState:UIControlStateNormal];
    button01.frame = CGRectMake(0, 60, 187.5, 60);
    button01.userInteractionEnabled = YES;
    [button01 addTarget:self action:@selector(buttonClicked01:) forControlEvents:UIControlEventTouchUpInside];
    [imageView01 addSubview:button01];
    
    
//    UIButton *button02 = [UIButton buttonWithType:UIButtonTypeCustom];
//    [button02 setImage:[UIImage imageNamed:@"10002.jpg"] forState:UIControlStateNormal];
//    button01;
    
    
    
    // Do any additional setup after loading the view.
}

- (void)buttonClicked01:(UIButton *)button
{
    
}

- (void)buttonClicked02:(UIButton *)button
{
    
}

- (void)buttonClicked03:(UIButton *)button
{
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
